package com.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface VisitorMapper {

    // 根据景点ID，将访客量+1
    @Update("update attraction set visitor_total = visitor_total + 1 where id = #{id}")
    void incrementVisitor(@Param("id") Integer id);
}